package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbSupplier;
import com.blacksheep.mtm.pojo.manager.TbSupplierExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbSupplierMapper {
    long countByExample(TbSupplierExample example);

    int deleteByExample(TbSupplierExample example);

    int deleteByPrimaryKey(Integer supplierId);

    int insert(TbSupplier record);

    int insertSelective(TbSupplier record);

    List<TbSupplier> selectByExample(TbSupplierExample example);

    TbSupplier selectByPrimaryKey(Integer supplierId);

    int updateByExampleSelective(@Param("record") TbSupplier record, @Param("example") TbSupplierExample example);

    int updateByExample(@Param("record") TbSupplier record, @Param("example") TbSupplierExample example);

    int updateByPrimaryKeySelective(TbSupplier record);

    int updateByPrimaryKey(TbSupplier record);

    List<TbSupplier> selectList(@Param("search") String search, @Param("state") int[] state, @Param("minDate") String minDate,
                                @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                @Param("orderDir") String orderDir);

    int deleteBatchById(Integer[] ids);

    int updateStateByPrimaryKey(@Param("supplierId")Integer id,@Param("state")Integer state);

    String selectSupplierName(@Param("supplierIds")String[] supplierIds);

}